#include "../header/picasa_utilities.h"

int PostImage::Add( int id )
{
	buffers << new QBuffer;
	ids << id;
	return (ids.size() - 1);
}

QBuffer* PostImage::GetBufferById( int id )
{
	int index = ids.indexOf( id );
	if( index == -1)
	{
		return NULL;
	}
	
	return buffers.at(index);
}



